<script type="text/javascript">
<!--
function checkFrom()
{
	var userName = document.getElementById("userName").value;
	//alert(pname);
	if(userName.length==0)
	{
		document.getElementById("pNameMsg").style.display = "inline-block";
		return false;
	}
	else
	{
		document.getElementById("pNameMsg").style.display = "none";
	}
	
	
	
	var passwd = document.getElementById("passwd").value;
	//alert(startTime);
	if(passwd.length==0)
	{
		document.getElementById("pwdMsg").style.display = "inline-block";
		return false;
	}
	else
	{
		document.getElementById("pwdMsg").style.display = "none";
	}
	
	var realName = document.getElementById("realName").value;
	//alert(startTime);
	if(realName.length==0)
	{
		document.getElementById("realNameMsg").style.display = "inline-block";
		return false;
	}
	else
	{
		document.getElementById("pwrealNameMsgdMsg").style.display = "none";
	}
}
//-->
</script>	
<table width="90%" style="margin-top:20px;" border="0" align="center" cellpadding="10" cellspacing="0">
	<tr>
		<td>
		<div id="main">
		<form action="/user/modify.do" method="post" >
      <input type="hidden" name="id" value="$!user.id" />
			<h3>修改系统评分用户</h3>
			<fieldset>
				<table width="100%" border="0" cellpadding="0" cellspacing="0">
					<tr>
						<td width="8%" height="30" align="left">登 录 名:</td>
				    	<td width="92%" align="left">&nbsp;
		        	  <input name="userName" type="text" class="text-long1" value="$!user.loginName"/><span id="pNameMsg" style="display:none; color:#FF0000; font-size:12px">*登录名不能为空</span></td>

					</tr>
					<tr>
					  <td height="30" align="left">密　　码:</td>
				      <td width="27%" align="left">&nbsp;
		        	  <input type="password" name="passwd" class="text-long1" value="$!user.password"/><span id="pwdMsg" style="display:none; color:#FF0000; font-size:12px">*密码不能为空</span></td>
					</tr>
					<tr>
					  <td height="30" align="left">用户姓名:</td>
				      <td width="27%" align="left">&nbsp;
		        	  <input type="text" name="realName" class="text-long1" value="$!user.realName" /><span id="realNameMsg" style="display:none; color:#FF0000; font-size:12px">*用户姓名不能为空</span></td>
					</tr>
					<tr>
					 <td height="30" align="left">角　　色:</td>
				      <td>
						&nbsp;
						<select name="authority">
							<option value="2" #if($!user.authority==2) selected #end>
								普通用户
							</option>
							<option value="1" #if($!user.authority==1) selected #end>
								管理员
							</option>
						</select>
					  </td>
				  </tr>
				  <tr>
					 <td height="30" align="left">是否启用:</td>
				      <td>
						&nbsp;
						<select name="status">
							<option value="1" #if($!user.status==1) selected #end>
								是
							</option>
							<option value="0" #if($!user.status==0) selected #end>
								否
							</option>
						</select>
					  </td>
				  </tr>
					<tr>
					  <td height="50" align="left" colspan="2">
					  <input type="submit" style="background:url(../images/button-submit.gif) left top no-repeat; border:none; cursor:pointer; width:94px; height:29px; line-height:29px; vertical-align:middle;" value="保　存" onclick="javascript:return checkFrom();"/>
				      <input type="button" style="background:url(../images/button-submit.gif) left top no-repeat; border:none; cursor:pointer; width:94px; height:29px; line-height:29px; vertical-align:middle;" value="返　回" onclick="window.history.go(-1);"/>
			          </td>

				  </tr>
			</table>
			</fieldset>
		</form>
		</div>
		</td>
	</tr>
</table>